export function handleCurrentPageEnterEvent(route, path, callback) {
  document.onkeyup = function(e) {
    if (route.path.includes(path) && (e.code === 'Enter' || e.code === 'enter')) {
      callback();
    }
  }
}